package com.fyb.service;

/**
 * @Author：MR.FANG
 * @name：DayNew
 * @Date：2025/5/13 上午11:21
 */
public enum DayNew {

    Monday("星期一",Type.ENGLIST),
    Tuesday("星期二",Type.ENGLIST),
    Wednesday("星期三",Type.ENGLIST),
    Thursday("星期四",Type.CHINESE);
    private final Type type;
    private final String day;

    DayNew(String day,Type type) {
        this.type = type;
        this.day = day;
    }

    String toDo(){
        return type.toDo();
    }

    private enum Type{
        ENGLIST{
            public String toDo(){
                return "今天上英语课";
            }
        },
        CHINESE{
            public String toDo(){
                return "今天上语文课";
            }
        };
        public abstract String toDo();
    }
}
